package com.bci.pwtz.mysql.dao;

import java.util.Date;
import java.util.List;

import org.apache.ibatis.annotations.Param;

import com.bci.pwtz.mysql.model.Zyjcky;

public interface ZyjckyMapper {
    int deleteByPrimaryKey(String deviceid);

    int insert(Zyjcky record);

    int insertSelective(Zyjcky record);

    Zyjcky selectByPrimaryKey(String deviceid);

    int updateByPrimaryKeySelective(Zyjcky record);

    int updateByPrimaryKey(Zyjcky record);
    
    int deleteById(@Param("deviceid")String deviceid,@Param("lastmodifiedtime")Date time);
    
    List<Zyjcky> selectDeviceList(@Param("name")String name,@Param("portalType")int portalType,@Param("medlinecodes")String[]medLineCodes,@Param("linecode")String lineCode,@Param("companyids")String[] companyids,@Param("companyid")Long companyId,@Param("begintime")String beginTime,@Param("endtime")String endTime,@Param("beginindex")int beginIndex,@Param("pagesize")int pageSize);
    
    int selectDeviceCount(@Param("name")String name,@Param("portalType")int portalType,@Param("medlinecodes")String[]medLineCodes,@Param("linecode")String lineCode,@Param("companyids")String[] companyids,@Param("companyid")Long companyId,@Param("begintime")String beginTime,@Param("endtime")String endTime);
}